import request from '@/utils/request'

export default {

  getImgCode(){
    return request({
      url: '/kaptcha/generate',
      method: 'get'
    })
  },
    //根据手机号发验证码

  //String imgCode, String imgKey,String phone
  sendCode(imgCode,imgKey,phone) {
    return request({
      url: '/sms/send?imgCode='+imgCode+'&imgKey='+imgKey+'&phone='+phone,
      method: 'get'
    })
  },

  //注册的方法
  registerMember(formItem) {
    return request({
      url: `/member/reg`,
      method: 'post',
      data: formItem
    })
  }

}
